package tju.mic.medicine.selfDefine.models;

import java.util.Objects;
import tju.mic.medicine.ws.models.SysMenu;

/**
 *
 * @author Patrick
 */
public class UserPrivilege {
    private Long userId;
    private SysMenu menu;
    private String userRight;
    private String departScope;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public SysMenu getMenu() {
        return menu;
    }

    public void setMenu(SysMenu menu) {
        this.menu = menu;
    }

    public String getUserRight() {
        return userRight;
    }

    public void setUserRight(String userRight) {
        this.userRight = userRight;
    }

    public String getDepartScope() {
        return departScope;
    }

    public void setDepartScope(String departScope) {
        this.departScope = departScope;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 59 * hash + Objects.hashCode(this.userId);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UserPrivilege other = (UserPrivilege) obj;
        if (!Objects.equals(this.userId, other.userId)) {
            return false;
        }
        return true;
    }

    
    
    
}
